package com.scut.campus.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scut.campus.dto.PageDTO;
import com.scut.campus.dto.TradeUpdateDto;
import com.scut.campus.entity.Trade;
import com.scut.campus.query.MainTradeQuery;
import com.scut.campus.query.TradeQuery;
import org.springframework.stereotype.Service;

@Service
public interface TradeService extends IService<Trade> {
    PageDTO<Trade> queryMyTrade(TradeQuery tradeQuery);

    PageDTO<Trade> queryMainTrade(MainTradeQuery mainTradeQuery);

    void updateTrade(TradeUpdateDto tradeUpdateDto);
}
